var express = require("express");
var router = express.Router();

router.get("/", function (request, response) {
  let resStatus = {
    code: 000,
    data: {},
    msg: "添加期待失败",
  };
  response.send(resStatus);
});

router.get("/get", function (request, response) {
  let resStatus = {
    code: 000,
    data: {},
    msg: "添加期待失败",
  };
  response.send(resStatus);
});

router.post("/abc", function (request, response) {
  var data = "";
  request.on("data", (chunk) => {
    data += chunk;
    let resStatus = {
      code: 000,
      data: {},
      msg: "添加期待失败",
    };
    response.send(resStatus);
  });
});

module.exports = router;
